package com.enjoy.xml;

import com.xiangxue.jack.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * <p>TODO</p>
 *
 * @Author Ellison Pei
 * @Date 2021/7/13 15:34
 **/
public class XmlConsumer {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationConsumer.xml");
        UserService userService = (UserService) applicationContext.getBean("userServiceImpl");
        System.out.println(userService.queryUser("100000"));
        System.in.read();
    }
}
